<?php
class ProductImage extends AppModel {
	var $name = 'ProductImage';	

        var $belongsTo = array(
		'Imagetitle' => array(
			'className' => 'Imagetitle',
			'foreignKey' => 'imagetitle_id'			
		)
	);
	var $validate = array(
		'image_title' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				'message' => 'Image title cannot be left empty',
			)
		)
	);
}
?>